projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36f8d56
)
(compute_motion): Fix previous change.
author
Kenichi Handa
<handa@m17n.org>
Fri, 8 May 1998 00:08:09 +0000
(
00:08
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Fri, 8 May 1998 00:08:09 +0000
(
00:08
+0000)
src/indent.c
patch
|
blob
|
history
diff --git
a/src/indent.c
b/src/indent.c
index fa1dc0a29321c32bf745ab729f8794630bbc9139..8f29b9cc24f8508227e2bce3a327087b977e4261 100644
(file)
--- a/
src/indent.c
+++ b/
src/indent.c
@@
-1225,7
+1225,7
@@
compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
/* Stop if past the target buffer position or screen position. */
if (pos > to
|| vpos > tovpos
- || vpos == tovpos && hpos > tohpos)
+ || vpos == tovpos &&
tohpos >= 0 &&
hpos > tohpos)
{
/* Go back to the previous position. */
pos = prev_pos;